<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogDefine"%>
<%@page import="com.tjsinfo.tjsoa.common.PageController"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>粮油集团办公自动化协作平台</title>	<link href="<%=basePath%>style/txlk7.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<%=basePath%>js/ieverson.js"></script>
		<script type="text/javascript">
 		
	    </script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript">
		function page2()
		{
			document.from1.submit();
			
		}
	</script>

  </head>
  
  <body>
  <%
  List infos = (List)request.getAttribute("list");
  %>
  	 <div id="right">
  	 	<div style="height:91%">
  	 		    <div class="p_01">
  	 		    	 <ul>
                		<li class="s03"><a href="<%=basePath %>tjsinfo/tjsoa/worklog/checkSuddenlyWorkLog.do"><img src="images/lssp.gif" /></a></li>
          			  </ul>

	  			</div>
	  			<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
          <tr>
            <td width="100%" valign="top" height="100%">
               <div class="contabwd">
                  <div class="blog_01" >
                  		<ul style="width: 800px">
                  		<%
                  				int i = infos.size();
                  				int shang = i / 8;
                  				int yu = i%8;
                  				if(i<8){
                  				for(int j=0;j<i;j++){
                  					WorkLogDefine user=(WorkLogDefine)infos.get(j);
                  				%>
                  				<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId() %>"><%=user.getTjsUserName()%></a></li>
                  				<%
                  				}
                  				}else{
                  				if(yu==0)
                  				{
                  					for(int s=0;s<=shang;s++)
                  					{
                  						for(int z=0;z<8;z++)
                  						{
                  							WorkLogDefine user=(WorkLogDefine)infos.get(z);
                  							if(z!=7)
                  							{
                  		%>
                  			<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId()%>"><%=user.getTjsUserName()%></a></li>
                  		<% 				
                  							}
                  							else
                  							{
                  		%>
                  			<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId()%>"><%=user.getTjsUserName()%></a></li>
               
                  		<% 					
                  							}
                  						}
                  		%>
                  		<% 			
                  					}
                  		%>
                  		<% 
                  				}
                  				else
                  				{
                  					for(int s=0;s<shang;s++)
                  					{
                  						for(int z=0;z<8;z++)
                  						{
                  							WorkLogDefine user=(WorkLogDefine)infos.get(8*s+z);
                  							if(z!=7)
                  							{
                  		%>
                  		<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId() %>"><%=user.getTjsUserName() %></a></li>
                  		<% 					
                  							}
                  							else
                  							{
                  		%>
                  		<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId()%>"><%=user.getTjsUserName()%></a></li>
                  		<%					
                  							}
                  		%>
                  			
                  		<% 		
                  						}
                  					}	
                  						for(int k=0;k<yu;k++)
                  						{
                  							WorkLogDefine user=(WorkLogDefine)infos.get(k+shang*8);
                  		%>                
                  			<li><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=user.getUserId()%>"><%=user.getTjsUserName() %></li>			
                  		<% 				
                  						}
                  					
                  				}
                  			}
                  		 %>
                  		 </ul>
                  </div>
              </div>
            </td>
          </tr>
      </table>
  	 	</div>		
	</div>	
  </body>
</html>
